﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NewsCrawler.Common.Models;
using Raven.Client.Document;

namespace NewsCrawler.Common.Interfaces
{
    public class DBManager
    {
        public static void Write(Article article)
        {
            //Database.Open().Articles.Insert(new { Content = article.Content });
            ////var db = Database.OpenNamedConnection("DefaultConnectionString");

            //var store = new DocumentStore { Url = "http://localhost:8082" };
            //store.Initialize();

            //using (var session = store.OpenSession())
            //{
            //    if (article == null)
            //    {
            //        session.Store(article);
            //        session.SaveChanges();
            //    }
            //}
        }
    }
}
